﻿@model SisGAC.Models.Artigo

@{
    ViewBag.Title = "Detalhes";
}

<h2>@ViewBag.Title</h2>

<fieldset>
    <legend>Artigo</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Titulo)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Titulo)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Autores)
    </div>
    <div>
        @foreach (var item in Model.Autores)
        {
            @item.Nome<br />
        }
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Area)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Area.Nome)
    </div>

    <div class="display-label">@Html.DisplayNameFor(model => model.DataCriacao)</div>
    <div class="display-field">@Html.DisplayFor(model => model.DataCriacao)</div>

    <div class="display-label">@Html.DisplayNameFor(model => model.Situacao)</div>
    <div class="display-field">@Html.DisplayFor(model => model.Situacao)</div>

    <div class="display-label">@Html.DisplayNameFor(model => model.Observacao)</div>
    <div class="display-field">@Html.DisplayFor(model => model.Observacao)</div>

    <div class="display-label">@Html.DisplayNameFor(model => model.Resumo)</div>
    <div class="display-field">@Html.DisplayFor(model => model.Resumo)</div>

    <div class="display-label">@Html.DisplayNameFor(model => model.Abstract)</div>
    <div class="display-field">@Html.DisplayFor(model => model.Abstract)</div>

    @if (Model.Arquivo != null)
    {
        <p>@Html.ActionLink("Baixar Arquivo", "Download", new { id=Model.ArtigoId})</p>
    }
</fieldset>
<p>
    @Html.ActionLink("Editar", "Cadastro", new { id=Model.ArtigoId }) |
    @Html.ActionLink("Voltar para Lista", "Index", new { id = Model.Congresso.CongressoId })
</p>
